﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Collections;

namespace VSM
{
    public partial class Popup_Technical : System.Web.UI.Page
    {
        
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                string filePath = Server.MapPath("Technical");
                string fileName = Request.QueryString["FullPath"] == null ? "" : Request.QueryString["FullPath"];
                if (fileName.Length > 0)
                {
                    string fullPath = System.IO.Path.Combine(filePath, fileName);
                    Response.AddHeader("Content-Disposition", "inline; filename=" + fullPath);
                    Response.ContentType = "Application/pdf";
                    Response.WriteFile(fullPath);
                    Response.End();
                }

            }
        }

    }
}